import {Point} from './Pointts'

export class Circle{
    radius:number = 0;
    circle_heart:Point = new Point(0,0)

    constructor(heart:Point, radius:number){
       this.radius = radius
       this.circle_heart = heart
    }
isPointInCircle(point:Point){
    let distance = this.circle_heart?.get_distance(point)
    return distance <=this.radius
    }
}
let point:Point = new Point(0,0);
let c1:Circle =new Circle(point,2)
console.log(c1);

let point22:Point = new Point(1,1);
let result:boolean = c1.isPointInCircle(point22)
console.log(result);